import request from '@/utils/request'

// 查询兼职管理列表
export function listSideWork(query) {
  return request({
    url: '/works/sideWork/list',
    method: 'get',
    params: query
  })
}

// 查询兼职管理详细
export function getSideWork(id) {
  return request({
    url: '/works/sideWork/' + id,
    method: 'get'
  })
}

// 新增兼职管理
export function addSideWork(data) {
  return request({
    url: '/works/sideWork',
    method: 'post',
    data: data
  })
}

// 修改兼职管理
export function updateSideWork(data) {
  return request({
    url: '/works/sideWork',
    method: 'put',
    data: data
  })
}

// 删除兼职管理
export function delSideWork(id) {
  return request({
    url: '/works/sideWork/' + id,
    method: 'delete'
  })
}
